package com.meowcook.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-11-15
 * Time: 14:07
 */
@Data
@ApiModel("私信参数")
public class MessageDTO {
    @NotNull
    @Min(1L)
    @ApiModelProperty("发送人id")
    private Long speakerId;

    @NotNull
    @ApiModelProperty("发送人昵称")
    private String nickname;

    @ApiModelProperty("发送人头像地址")
    private String avatarUrl;

    @NotNull
    @Min(1L)
    @ApiModelProperty("会话id")
    private Long sessionId;

    @NotNull
    @ApiModelProperty("内容")
    private String content;
}
